import java.sql.*;
import java.io.*;

class Jdbc1  
{
	
    Connection con;
	ResultSet rs;
	Statement st1;
    Statement st2;
	


	public void insert(String query)
	{
		try
		{
			String str=query;
			Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
			con=DriverManager.getConnection("jdbc:odbc:a1");
			st1=con.createStatement();
			st1.executeUpdate(str);
			
		}
			
		catch (Exception be)
		{
			be.printStackTrace();
		}
	}
		public void delete(String query)	
	    {
		  try
		  {
			String str=query;
			Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
			con=DriverManager.getConnection("jdbc:odbc:a1");
			st2=con.createStatement();
			st2.executeUpdate(str);
			
		  }
			
		  catch (Exception be)
		  {
			be.printStackTrace();
		  }
		
	    }

  
  }
